package operations;

import book.Book;
import book.BookList;

public class DisplayOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("显示所有图书！");
        int currentsize = bookList.getUsedsize();
        for (int i = 0; i <currentsize ; i++) {
            Book book = bookList.getPos(i);
            System.out.println(book);
            }
        }

}
